<?php

class myUser extends sfBasicSecurityUser
{
	public function signIn($admin)
    {
      $this->setAuthenticated(true);
      $this->addCredential('cdmgt');
      
      $this->setAttribute('user_id', $admin->getId());
      $this->setAttribute('username', $admin->getUsername());
    }
	
	public function signOut()
    {
      $this->clearCredentials();
      $this->setAuthenticated(false);
    }
}
